package com.nantong.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nantong.admin.domain.QuoteItem;
import com.nantong.admin.domain.model.response.quote.QuoteItemVo;
import com.nantong.common.mybatis.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 报价单明细Mapper接口
 */
@Mapper
public interface QuoteItemMapper extends BaseMapperPlus<QuoteItem, QuoteItemVo> {

    /**
     * 根据报价单ID查询明细列表
     */
    List<QuoteItemVo> selectItemsByQuoteId(@Param("quoteId") Long quoteId);

    /**
     * 根据报价单ID删除明细
     */
    int deleteItemsByQuoteId(@Param("quoteId") Long quoteId);

}